package cn.com.south.mapper;

import cn.com.south.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author south
 * @since 2021-12-30
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {


    /**
     * 通过用户名查询用户
     * @param username
     * @return
     */
    public User findByUsername(@Param("username")String username);

}
